package com.whu.waterworks.dao;

import java.util.List;

import com.whu.waterworks.dto.WaterPlantDto;
import com.whu.waterworks.model.TWaterplantdataHis;

public interface HisWaterPlantDAO {

	/**
	 * 保存水厂数据
	 * @author wangying
	 * @param tWaterplantdataHis
	 * @return
	 */
	public boolean save(TWaterplantdataHis tWaterplantdataHis);
	/**
	 * 获取所有水厂数据
	 * @author wangying
	 * @return
	 */
	public  List<TWaterplantdataHis>  getAll();
	
	/**
	 * 根据ID获取数据	 
	 * @author wangying
	 * @param code
	 * @return
	 */
	public  List<TWaterplantdataHis> getWaterplantdatasById(String code);
	
	/**
	 * 获取指定id在某个时间之后的所有数据
	 * @author wangying
	 * @param code
	 * @param beginTime
	 * @return
	 */
	public  List<TWaterplantdataHis> geTWaterplantdataByIdAndOneTime(String code,  String beginTime);
	/**
	 * 获取指定id指定类型在某个时间之后的所有数据
	 * @author wangying
	 * @param code
	 * @param type
	 * @param beginTime
	 * @return
	 */
	public  List<WaterPlantDto> geTWaterplantdataByIdAndOneTime(String code, String type, String beginTime);
	/**
	 * 获取指定id时间段数据
	 * @author wangying
	 * @param code
	 * @param beginTime
	 * @param endTime
	 * @return
	 */
	public  List<TWaterplantdataHis> geTWaterplantdataByIdAndTwoTime(String code, String beginTime,String endTime);
	
	/**
	 * 获取指定id指定类型时间段数据
	 * @author wangying
	 * @param code
	 * @param type
	 * @param beginTime
	 * @param endTime
	 * @return
	 */
	public  List<WaterPlantDto> geTWaterplantdataByIdTypeAndTwoTime(String code, String type,String beginTime,String endTime);
}
